#ifndef _WIFI_H
#define _WIFI_H
#include <string.h>
#include "usart.h"
extern uint8_t USART5_RxBuff[1024];
extern volatile uint8_t USART5_RxCounter;
#define WiFi_RxCounter    USART5_RxCounter    
#define WiFi_RX_BUF       USART5_RxBuff 
#define ESP8266_USART(fmt, ...)  USART_printf(&huart5, fmt, ##__VA_ARGS__) 
#define u1_USART(fmt, ...)  USART_printf(&huart1, fmt, ##__VA_ARGS__) 
#define WIFI_ID   "KELASON9"                     
#define PASSWORD   "02020828" 

#define ServerIP   "192.168.43.11"                     
#define ServerPort   8888


char WIFI_Config0(int time);
char WIFI_Config(int time,char*cmd,char*response);
char WIFI_Router(int time);
char WIFI_ConnectTCP(int time);
void WIFI_Connect(void);
void ESP8266_Clear(void);
#endif
